/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import interfaces.Lager_VareInterface;
import interfaces.VareInterface;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 *
 * @author Jeppe
 */
public class Lager_Vare extends UnicastRemoteObject implements Lager_VareInterface {

    private int salgsPris;
    private int antal;
    private VareInterface vareInterface;

    /**
     *
     * @param salgsPris
     * @param antal
     * @param vareInterface
     */
    public Lager_Vare(int salgsPris, int antal, VareInterface vareInterface) throws RemoteException {
        this.salgsPris = salgsPris;
        this.antal = antal;
        this.vareInterface = vareInterface;
    }

    @Override
    public int getSalgsPris() throws RemoteException {
        return salgsPris;
    }

    @Override
    public int getAntal() throws RemoteException {
        return antal;
    }

    @Override
    public VareInterface getVare() throws RemoteException {
        return vareInterface;
    }

}
